package com.study.dao;

public class Test {
    public static void main(String[] args) {
        //继承的类和接口有相同名称默认实现
        InterfaceTest interfaceTest=new InterfaceTest();
        //当接口中和类中具有相同方法名称时默认使用类中
        System.out.println(interfaceTest.function());

        //多个接口具有相同默认实现
        InterfaceTest1 interfaceTest1=new InterfaceTest1();
        System.out.println(interfaceTest1.function());

        //接口中静态方法
        System.out.println(MyInterface.staticMethod());
    }
}
